Skip to content

feat: read the SCTP transport of a peer connection - #608

Open
devopvoid wants to merge 1 commit into
mainfrom
feat/sctp-transport
Open

devopvoid wants to merge 1 commit into
mainfrom
feat/sctp-transport

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

Description

RTCPeerConnection.getSctpTransport() returns the SCTP transport of the data channels, as RTCSctpTransport: its state, getMaxMessageSize(), getMaxChannels() and the DTLS transport beneath it.

Motivation and Context

An application that sends large messages needs the size the remote peer accepts, since a larger message is refused.

Type of Change

  • New feature (feat)

Affected Modules

  • webrtc (Java API)
  • webrtc-jni (native code)
  • docs

Notes for Reviewers

The native transport has no proxy, and its observer methods must run on the network thread, so this PR has no state observer yet. Every getter goes through Information(), which calls over to that thread itself.

The data channel threshold PR adds a helper at the same place in TestDataChannelPair; whichever merges second keeps both methods.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant